package com.itheima.interface1.homework.text6;
/*
定义动物类 属性:年龄行为:喝水,吃东西【吃什么不确定】
 */
public abstract class Animal {
    private int age;

    public Animal() {
    }

    public Animal(int age) {
        this.age = age;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }
    public void drink(){
        System.out.println("喝水");
    }
    public abstract void eat(String something);
}
